import { getRequest } from "/@/lib/axios";
import { postRequest } from "/src/lib/axios";
export const scenemanagement = {
  query: (param) => {
    return postRequest("/scenarios/queryPage", {
      ...param,
      searchCount: true,
      sortItemList: [
        {
          isAsc: true,
          column: "scenarios_id",
        },
      ],
    });
  },
  Add: (param) => {
    return postRequest("/scenarios/add", param);
  },
  DElete: (scenariosId) => {
    return getRequest("/scenarios/delete/" + scenariosId);
  },
  Edit: (param) => {
    return postRequest("/scenarios/update", param)
  }
};
